<div ng-controller="homeCtrl" class="home">
    home test page.
    <h1>{{title}}</h1>
    <div class="test">
        <h1>请问这是多少钱？ {{test|currency:'￥'}}
        </h1>
    </div>
    <br>
    <br>
    <br>
    <br>
    <div>排序：
        <button ng-click="order='price'">orderby price</button>
        <button ng-click="orderByNum()">orderby num</button>
    </div>
    <ul>
        <li ng-repeat="item in datas | orderBy : order">
            id:{{item.id}}---name: {{item.name}}--price: {{item.price}}--num:{{item.num}}
        </li>
    </ul>
</div>